#coding=utf-8
#2-01-client.py
import socket
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(('127.0.0.1',8899))
#接受信息
print s.recv(1024)
for data in ['Michael','Tracy','Sarah']:
    #发送数据
    s.send(data)
    print s.recv(1024)
s.send('exit')
s.close()

